<script type="text/javascript">
    function a(){
        document.getElementById("abc").value='<?php echo date("Y-m-d H:i:s"); ?>';
    }
</script>
<input type="button" value="测试" onclick="a()"/>
<input type="text" name="abc" id="abc" />
